<?php
/**
  * 系統名稱: Platform 系統
  * 檔案說明: 專案管理-修改
  * $Author$
  * $Id$
  *
  */
include_once("../config.inc.php");

$_LangPath = "";	//語言檔參數，務必放在最前面

include_once(__Admin_Path."/logincheck.php");
include_once(__Language_Path."/selectlanguage_admin.php");
include_once(__Modules_Path."/CCharset.class.php");

$strWord = trim($_data["Word"]);
$strChType = trim($_data["ChType"]);

$objCCharset = new CCharset();
switch($strChType){
	case "u8tw-u8cn":
		$strWord = $objCCharset -> setUtf8_Big5ToUtf8_Gb($strWord);
		break;

	case "u8cn-u8tw":
		$strWord = $objCCharset -> setUtf8_GbToUtf8_Big5($strWord);
		break;
}

$GLOBALS["errormessage"] = $strWord;
$strErr = "CCharsetSuccess";

ErrMsgOutputHTML($strErr, "AjaxError", 1);
?>